#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QFontDatabase>
#include <QFont>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    behaviorInit();
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::behaviorInit()
{
    this->ui->icon_monitor->setFont(QFont("zx_icons"));
    this->ui->icon_monitor->setText(QChar(0xE628));

    this->ui->icon_alarm->setFont(QFont("zx_icons"));
    this->ui->icon_alarm->setText(QChar(0xE925));

    this->ui->icon_chart->setFont(QFont("zx_icons"));
    this->ui->icon_chart->setText(QChar(0xE626));

    this->ui->icon_setting->setFont(QFont("zx_icons"));
    this->ui->icon_setting->setText(QChar(0xE618));
}

